package httplib.GetShopGoods;

import httplib.BaseProxy;
import httplib.HttpHelper;
import httplib.HttpProxyListener;

/**
 * Created by p on 2016/11/23.
 */
public class GetShopGoodsProxy extends BaseProxy {
    public void doRequest (final HttpHelper httpHelper, final GetShopGoodsInput input, final HttpProxyListener<GetShopGoodsOutput> onListener){
        httpHelper.PostJson(GetShopGoodsOutput.class, input, new HttpProxyListener() {
            @Override
            public void NetError(int code, String message) {
                onListener.NetError(code, message);
            }

            @Override
            public void ServiceError(int code, String message) {
                onListener.ServiceError(code, message);
            }

            @Override
            public void Success(Object o) {
                GetShopGoodsOutput body = (GetShopGoodsOutput)o;
                onListener.Success(body);
            }
        });
    }
}
